package com.dfrz.controller;

import com.dfrz.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Create by keyan on 2021/7/29 11:19
 */

@RestController
@RequestMapping("/")
public class PublicController {
    @Autowired
    IUserService userService;

    @RequestMapping("index")
    public ModelAndView toindex(){
        ModelAndView mv = new ModelAndView();
        mv.setViewName("index");
        return mv;
    }

    @RequestMapping("welcome")
    public ModelAndView toWelcome(){
        ModelAndView mv = new ModelAndView();
        mv.setViewName("welcome");
        return mv;
    }
}
